package com.msb.mall.product.feign;

import com.msb.common.utils.R;
import com.msb.mall.product.feign.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "mall-seckill",fallback = SeckillFeignServiceFallback.class)
public interface SeckillFeignService {

    @RequestMapping("/seckill/sessionInfo/{skuId}")
    R getSeckillSessionBySkuId(@PathVariable("skuId") Long skuId);

}
